package com.mjlf.mqzook.config;

import com.mjlf.restclient.annocation.RestClientEnable;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @ClassName ZkClientConfig
 * @Author mjlft
 * @Date 2020/2/18 14:38
 * @Version 1.0
 * @Description 客户端配置
 */
@Configuration
@ComponentScan("com.mjlf.mqzook.client")
@EnableScheduling
@RestClientEnable
@Data
public class ZkClientConfig {

    @Value("${server.application}")
    private String applicationName;

    @Value("${server.port}")
    private Integer port;

    @Value("${client.host}")
    private String host;

    @Value("${server.path}")
    private String url;
}
